﻿
'Encriptacion MD5/TripleDes
'http://www.dreamincode.net/forums/topic/171440-encrypting-xml/
Public Class CriptoMD5TripleDESUtil

    Public Shared Function encryptToBytes(ByVal data As String, ByVal key As String) As Byte()
        Return CriptoTripleDESUtil.encryptToBytes(data, CriptoMD5Util.MD5Hash(key))
    End Function

    Public Shared Function encrypt(ByVal data As String, ByVal key As String) As String
        Return CriptoTripleDESUtil.encrypt(data, CriptoMD5Util.MD5Hash(key))
    End Function

    Public Shared Function decrypt(ByVal data As String, ByVal key As String) As String
        Return CriptoTripleDESUtil.decrypt(data, CriptoMD5Util.MD5Hash(key))
    End Function
End Class
